/*
** trantorian.h for  in /u/all/tessa_b/public/trantor
** 
** Made by arnaud1 tessa
** Login   <tessa_b@epitech.net>
** 
** Started on  Tue Jul  5 16:06:53 2011 arnaud1 tessa
** Last update Thu Jul  7 09:49:55 2011 arnaud1 tessa
*/

#ifndef		__TRANTORIAN_H__
#define		__TRANTORIAN_H__

#include	"../resources/resources.h"

typedef enum
  {
    NORTH = 0,
    SOUTH,
    EAST,
    WEST
  }	t_direction;

typedef struct	s_trantorian
{
  int		x;
  int		y;
  t_direction	direction;
  int		level;
  t_resources	inventaire;	
  char		*team_name;
}		t_trantorian;

int		trantorian_init(t_trantorian *tr, int x, int y, 
				char *team_name);
void		trantorian_delete(t_trantorian *tr);
void		trantorian_avance(t_trantorian *tr);
void		trantorian_droite(t_trantorian *tr);
void		trantorian_gauche(t_trantorian *tr);
char		*trantorian_voir(t_trantorian *tr);
char		*trantorian_inventaire(t_trantorian *tr);
int		trantorian_prend(t_trantorian *tr, char *r_name);
int		trantorian_pose(t_trantorian *tr, char *r_name);
int		trantorian_expulse(t_trantorian *tr);
void		trantorian_broadcast(t_trantorian *tr);
char		*trantorian_incantation(t_trantorian *tr);
void		trantorian_fork(t_trantorian *tr);
char		*trantorian_connect_nbr(t_trantorian *tr);
void		trantorian_display(t_trantorian *tr);

#endif		/*__TRANTORIAN_H__*/
